package com.tiger.project.service.impl;

import java.util.List;

import com.tiger.project.domain.ConstructionEnclosure;
import com.tiger.project.mapper.ConstructionEnclosureMapper;
import com.tiger.project.service.IConstructionEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【建设项目附件】Service业务层处理
 *
 * @author standard
 * @date 2022-09-16
 */
@Service
public class ConstructionEnclosureServiceImpl implements IConstructionEnclosureService {
    @Autowired
    private ConstructionEnclosureMapper constructionEnclosureMapper;

    /**
     * 查询【建设项目附件】
     *
     * @param id 【建设项目附件】主键
     * @return 【建设项目附件】
     */
    @Override
    public ConstructionEnclosure selectConstructionEnclosureById(Long id) {
        return constructionEnclosureMapper.selectConstructionEnclosureById(id);
    }

    /**
     * 查询【建设项目附件】列表
     *
     * @param constructionEnclosure 【建设项目附件】
     * @return 【建设项目附件】
     */
    @Override
    public List<ConstructionEnclosure> selectConstructionEnclosureList(ConstructionEnclosure constructionEnclosure) {
        return constructionEnclosureMapper.selectConstructionEnclosureList(constructionEnclosure);
    }

    /**
     * 新增【建设项目附件】
     *
     * @param constructionEnclosure 【建设项目附件】
     * @return 结果
     */
    @Override
    public int insertConstructionEnclosure(ConstructionEnclosure constructionEnclosure) {
        return constructionEnclosureMapper.insertConstructionEnclosure(constructionEnclosure);
    }

    /**
     * 修改【建设项目附件】
     *
     * @param constructionEnclosure 【建设项目附件】
     * @return 结果
     */
    @Override
    public int updateConstructionEnclosure(ConstructionEnclosure constructionEnclosure) {
        return constructionEnclosureMapper.updateConstructionEnclosure(constructionEnclosure);
    }

    /**
     * 批量删除【建设项目附件】
     *
     * @param ids 需要删除的【建设项目附件】主键
     * @return 结果
     */
    @Override
    public int deleteConstructionEnclosureByIds(Long[] ids) {
        return constructionEnclosureMapper.deleteConstructionEnclosureByIds(ids);
    }

    /**
     * 删除【建设项目附件】信息
     *
     * @param id 【建设项目附件】主键
     * @return 结果
     */
    @Override
    public int deleteConstructionEnclosureById(Long id) {
        return constructionEnclosureMapper.deleteConstructionEnclosureById(id);
    }



}
